package com.jsu.service;

import org.example.model.activity.dto.ActivityWithFlowDTO;
import org.example.model.activity.pojo.ActivityArticle;
import org.example.model.activity.pojo.Registration;
import org.example.model.common.dtos.ResponseResult;

import javax.servlet.http.HttpServletResponse;

public interface ActivityService {
    ResponseResult getAllActivities(Integer type,Integer userId);

    ResponseResult getActivityByName(Integer type);

    ResponseResult updateActivity(ActivityWithFlowDTO activityWithFlowDTO);

    ResponseResult addActivity(ActivityWithFlowDTO activityDTO);

    ResponseResult delActivity(Integer activityId);

    ResponseResult getActivityById(Integer activityId);

    ResponseResult getArticleToHtml(Integer activityId);

    ResponseResult updateActivityLikes(Integer activityId,Integer userId,Integer isLiked);

    ResponseResult addActivityViews(Integer activityId);

    ResponseResult registration(Registration registration);

    ResponseResult getAllActivityBasic();

    ResponseResult takePhoto(Integer activityId, Integer userId, String base64Img);

    ResponseResult getNextActivity(Integer activityId);

    ResponseResult getRegistrationByActivityId(Integer activityId);

    ResponseResult addArticle(ActivityArticle activityArticle);

    ResponseResult getRegistrationList();

    ResponseResult getActivitysByName(String activityName);
}
